// getInterface
var registerDemo = require('./interface/registerDemo.js')
var userInfo = require('./interface/userInfo.js')
var user = require('./interface/user.js')
var cookieParser = require('cookie-parser')
var isCrossDomain = require('./config/index').isCrossDomain // 是否支持跨域
var setInterFace = app => {
  var bodyParser = require('body-parser')
  app.use(bodyParser.json({
    limit: '10mb'
  }))
// 这里指定参数使用 json 格式
  app.use(bodyParser.urlencoded({
    extended: true,
    limit: '50mb'
  }))
// useInterface
registerDemo(app)
userInfo(app)
  user(app)
}
module.exports = setInterFace
